﻿using System;
using System.Collections.Generic;
using System.Text;

namespace WebService.BusinessEntities
{
    /// <summary>
    /// Encja stanu zalogowania/wylogowania z systemu.
    /// Sluzy monitoringowi logowan.
    /// </summary>
    public partial class LoginAudit
    {
        public LoginAudit()
        {
        }
        /// <summary>
        /// Konstruktor parametrowy encji stanu za-/wylogowania z systemu
        /// </summary>
        /// <param name="logon_date">Data zalogowania</param>
        /// <param name="logout_date">Data wylogowania</param>
        /// <param name="status">Status zalogowania</param>
        /// <param name="user_id">ID uzytkownika</param>
        public LoginAudit(System.DateTime logon_date, Nullable<System.DateTime> logout_date, System.Boolean status, System.Int32 user_id)
        {
            this.logon_dateField = logon_date;
            this.logout_dateField = logout_date;
            this.statusField = status;
            this.user_idField = user_id;
        }
        
        private System.DateTime logon_dateField;
        /// <summary>
        /// Data zalogowania
        /// </summary>
        public System.DateTime logon_date
        {
            get { return this.logon_dateField; }
            set { this.logon_dateField = value; }
        }
        
        private Nullable<System.DateTime> logout_dateField;
        /// <summary>
        /// Data wylogowania
        /// </summary>
        public Nullable<System.DateTime> logout_date
        {
            get { return this.logout_dateField; }
            set { this.logout_dateField = value; }
        }
        
        private System.Boolean statusField;
        /// <summary>
        /// Status zalogowania
        /// </summary>
        public System.Boolean status
        {
            get { return this.statusField; }
            set { this.statusField = value; }
        }

        private System.Int32 user_idField;
        /// <summary>
        /// ID uzytkownika
        /// </summary>
        public System.Int32 user_id
        {
            get { return this.user_idField; }
            set { this.user_idField = value; }
        }

    }
}

